package thread;

public class Main {
    public static void main(String[] args) {
        //线程创建
        RunningMan2 man1 = new RunningMan2("津哥");
        RunningMan2 man2 = new RunningMan2("津少");
        RunningMan2 man3 = new RunningMan2("津总");
        Thread thread1 = new Thread(man1);
        Thread thread2 = new Thread(man2);
        Thread thread3 = new Thread(man3);
        //线程就绪
//        man1.start();
//        man2.start();
//        man3.start();

        thread1.start();
        thread2.start();
        thread3.start();
    }
}
